import request from '@/utils/request'

// 查询通知阅读记录列表
export function listRead(query) {
  return request({
    url: '/system/read/list',
    method: 'get',
    params: query
  })
}

// 查询通知阅读记录详细
export function getRead(readId) {
  return request({
    url: '/system/read/' + readId,
    method: 'get'
  })
}

// 新增通知阅读记录
export function addRead(data) {
  return request({
    url: '/system/read',
    method: 'post',
    data: data
  })
}

// 修改通知阅读记录
export function updateRead(data) {
  return request({
    url: '/system/read',
    method: 'put',
    data: data
  })
}

// 删除通知阅读记录
export function delRead(readId) {
  return request({
    url: '/system/read/' + readId,
    method: 'delete'
  })
}
